import request from '@/utils/request'



//统一字典下拉框查询
export function adminDict(params) {
    return request({
        url: `common/v1/adminDict`,
        params
    })
}
//数字权益卡下卡列表
export function cardList(params) {
    return request({
        url: `/box/prize/equity/card/list`,
        method: 'get',
        params
    })
}
// 查询盲盒奖品列表
export function boxPrizeList(params) {
    return request({
        url: `/box/prize/list`,
        method: 'get',
        params
    })
}
//新增盲盒奖品
export function addBoxPrize(data) {
    return request({
      url: '/box/prize',
      method: 'post',
      data
    })
}

//编辑卡信息
export function editBoxPrize(data) {
    return request({
        url: `/box/prize`,
        method: 'put',
        data
    })
}
//获取盲盒奖品信息
export function detail(id) {
    return request({
        url: `/box/prize/${id}`,
        method: 'get',
    })
}

//添加盲盒奖品数量
export function addBoxPrizeNum(data) {
    return request({
      url: '/box/prize/addBoxPrizeNum',
      method: 'post',
      data
    })
}
// 查询通用权益库存下拉框
export function inventorySelect(params) {
    return request({
        url: `/common/v1/equity/inventory/select`,
        method: 'get',
        params
    })
}